﻿using MoviesWeb.BLL;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class User_movieresult : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            if (Request.QueryString["key"] != null)
            {
                Application["data"] = MoviesBLL.KeyWordGetMovies(Request.QueryString["key"]);
                return;
            }
            if (Request.QueryString["type"] != null)
            {
                Application["data"] = MoviesBLL.TypeGetMovies(Request.QueryString["type"]);
                return;
            }
        }
    }
}